package com.hefeng.wx.feign;

import com.alibaba.fastjson.JSONObject;
import com.hefeng.wx.feign.model.DeviceInfo;
import com.hefeng.wx.feign.model.LoginEneity;
import io.swagger.annotations.Api;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;

@FeignClient("gas-auth-service")
@Component
public interface GascollectionClient {

    @GetMapping("/deviceInfo/queryByDeviceCode/")
    DeviceInfo findByCode(@RequestParam("deviceCode") String deviceCode);
    /**
     * 方法说明: 验证用户登录一期平台
     * @param loginEneity
     * @return JSONObject
     * @Author: huzh
     * @Date: 2022/10/19
     */
    @PostMapping("/login")
    JSONObject getToken(@RequestBody LoginEneity loginEneity);

}
